.low-code-container {
    height: 100vh;
    width: 100%;
    overflow: hidden;

    .low-code-header {
        border-bottom: 1px solid #ccc;
        box-sizing: border-box;

        .low-code-menu {
            height: 59px;
            display: flex;
            justify-content: center;
            align-items: center;

            &>div {
                width: 40px;
                height: 100%;
                background-color: #ccc;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-right: 10px;
                user-select: none;
                font-size: 12px;
                flex-direction: column;
            }
        }
    }
}

.low-code-main {
    display: flex;
    height: calc(100vh - 60px);

    &>div {
        height: 100%;
    }
}


.low-code-left {
    width: 300px;
    min-width: 200px;
    background-color: #fff;
    box-sizing: border-box;
    padding: 20px;
    height: 100%;
    overflow-y: scroll;

    .config-list-item {
        position: relative;
        border: 1px solid red;
        height: 100px;
        border-radius: 4px;
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        cursor: pointer;

        .item-label {
            position: absolute;
            left: 0;
            top: 0;
            background-color: #ccc;
            padding: 5px;
        }
    }

    .config-list-item::after {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.1);
    }
}


.low-code-middle {
    flex: 1;

    .low-code-content-out {
        height: 100%;
        overflow-y: scroll;

        .inner-content {
            background: rgba(216, 222, 232, 0.4);
            position: relative;
            overflow: hidden;
            margin: 0 auto;

            .block-item {
                position: absolute;
                user-select: none;

                &::after {
                    position: absolute;
                    content: '';
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 2;
                }
                .el-button {
                    transition: none;
                }
            }

            .editor-block-focus {
                &::after {
                    border: 1px dashed red;
                }
            }

            .no-edit-preview {
                &::after {
                    display: none;
                }
            }

            .editor-x {
                position: absolute;
                content: '';
                top: 0;
                bottom: 0;
                border-left: 1px dashed red;
            }

            .editor-y {
                position: absolute;
                content: '';
                left: 0;
                right: 0;
                border-top: 1px dashed red;
            }
        }
    }
}

.low-code-right {
    width: 300px;
    min-width: 200px;
    box-sizing: border-box;
    padding: 20px;
}

// 边界样式
.divider {
    width: 6px;
    height: 100%;
    background-color: #d8dee8;
    opacity: .9;
    cursor: col-resize;
}




::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    cursor: pointer;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
    transition: color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}


.preview-container {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    overflow: auto;
    height: 100vh;
    position: absolute;
    top: 0;
    z-index: 999;

    .preview-content {
        margin: 0 auto;
        margin-bottom: 20px;
        margin-top: 20px;
        width: 450px;
        padding-bottom: 20px;
        background: #fff;
        position: relative;
        border-radius: 4px;
    }

    .preview-title-box {
        display: flex;
        height: 60px;
        line-height: 60px;
        padding: 0 20px;

        .preview-title {
            flex: 1;
            user-select: none;
        }

        .preview-close {
            width: 20px;
            text-align: right;
            cursor: pointer;
        }
    }

    .inner-content {
        background: #fff;
        position: relative;
        overflow: hidden;
        margin: 0 auto;
        border: 1px solid rgba(0, 0, 0, 0.1);

        .block-item {
            position: absolute;
            user-select: none;

            &::after {
                position: absolute;
                content: '';
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 2;
            }
        }
    }

}

// 菜单弹框
.drop-down {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 5px 0;
    user-select: none;
    width: 80px;
    text-align: center;
    z-index: 100;
    border: 1px solid #ccc;

    .drop-down-item {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);

        .drop-down-item-label {
            padding-left: 5px;
        }

        .el-icon {
            vertical-align: middle;
        }
    }

    .drop-down-item:last-child {
        border-bottom: none
    }

    .drop-down-item:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

.drop-down-show {
    display: block;
}